def decorator(fn):
	def inner(*args, **kwargs):
		print("正在计算中...")
		return fn(*args, **kwargs)
	return inner

@decorator
def sum_num(*args, **kwargs):

	result = 0
	# 统计所有的位置参数的结果
	for value in args:
		result += value

	# 统计所有关键字参数的结果
	for value in kwargs.values():
		result += value

	return result


print(sum_num(1, 2))
print(sum_num(1, a = 2))
print(sum_num(a=1, b=2))